package cn.aitrox.ry.app.web;

import cn.aitrox.ry.app.web.interceptor.ApiFeignRequestInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(
        exclude = {DataSourceAutoConfiguration.class, RedisAutoConfiguration.class})
@ComponentScan(value = {"cn.aitrox.ry"})
@EnableFeignClients(basePackages = "cn.aitrox.ry.service", defaultConfiguration = ApiFeignRequestInterceptor.class)
public class WebBootstrap {
    public static void main(String[] args) {
        SpringApplication.run(WebBootstrap.class,args);
    }

}
